import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    token:""
  },
  mutations: {
    setToken(state,val){
      state.token = val
      sessionStorage.setItem("token",val)
    },
    // getToken(state){
    //   state.token = state.token || sessionStorage.getItem("token")
    // }
  },
  actions: {},
  modules: {},
});
